home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / mgr / sparcmgr / lib.zoo / lib / Makefile < prev    next >
Encoding:
Makefile  |  1989-01-24  |  1.9 KB  |  84 lines

  1. #                        Copyright (c) 1987 Bellcore
  2. #                            All Rights Reserved
  3. #       Permission is granted to copy or use this program, EXCEPT that it
  4. #       may not be sold for profit, the copyright notice must be reproduced
  5. #       on copies, and credit should be given to Bellcore where it is due.
  6. #       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
  7.  
  8. #    $Header: Makefile,v 4.5 88/08/29 13:38:23 sau Exp $
  9. #    $Source: /tmp/mgrsrc/lib/RCS/Makefile,v $
  10.  
  11. # makefile for mgr c-interface library
  12.  
  13. INSROOT=/usr/mgr
  14. LIB= ./term.o
  15. INSDIR=$(INSROOT)/lib
  16. INCLDIR=$(INSROOT)/include
  17. START=.
  18. CPIO=lib.cpio
  19.  
  20. CFLAGS=-O 
  21.  
  22. PORTCFILES = ckmgrterm.c term.c text.c sfont.c sin.c
  23. CFILES = $(PORTCFILES) scribe.c
  24. OFILES = ckmgrterm.o term.o text.o sfont.o scribe.o sin.o
  25. HFILES = window.h term.h restart.h dump.h
  26.  
  27.  
  28. all small:    $(OFILES) libmgr.a
  29.  
  30. fast:
  31.         cc -c $(CFLAGS) $(PORTCFILES)
  32.         rm -f libmgr.a
  33.         make all
  34.  
  35. libmgr.a:    $(OFILES)
  36.         ar rv $@ $?
  37.         ranlib $@
  38.  
  39. term.o:        term.h window.h restart.h
  40.  
  41. text.o:        term.h window.h
  42.  
  43. textlib.o:    text.o sfont.o scribe.o sin.o 
  44.         ld -r -o textlib.o  text.o sfont.o scribe.o sin.o 
  45.  
  46. #    the optimizer dies on scribe.c 
  47.  
  48. scribe.o:    scribe.c
  49.         cc -c scribe.c
  50.  
  51. smallinstall:    install
  52.  
  53. install:    all $(INSDIR) $(INCLDIR)
  54.     cd $(INCLDIR);  rm -f $(HFILES)
  55.     cp $(HFILES) $(INCLDIR)
  56. #        Do not install the files if INSDIR is the current directory.
  57. #        This stuff with ReMoveThisFile is to get around symbolic links.
  58.     rm -rf ./ReMoveThisFile
  59.     touch $(INSDIR)/ReMoveThisFile
  60.     if [ ! -f ./ReMoveThisFile ]; then \
  61.         (cd $(INSDIR);  rm -f libmgr.a ); \
  62.         cp libmgr.a $(INSDIR); \
  63.     else \
  64.         echo ">>  $(INSDIR) == current directory; no files copied"; \
  65.     fi
  66.     rm -rf $(INSDIR)/ReMoveThisFile
  67.  
  68. $(INSDIR) $(INCLDIR):
  69.         mkdir $@
  70.  
  71. clean:    
  72.         rm -f *.o core
  73.  
  74. clobber:
  75.         rm -f $(OFILES) libmgr.a bitmap.h blitlib.a
  76.  
  77. list:
  78.     @for i in Makefile ${CFILES} ${HFILES}; do \
  79.         echo "${START}/$$i"; \
  80.     done    
  81.  
  82. cpio:
  83.     make -s list | cpio -ocv > ${CPIO}
  84.